package com.blank.web.bean;

import java.util.Date;

public class Student {
    //1、私有化成员变量
    private int sid;  //学号
    private String sName;  //学生姓名
    private String gender;  //学生性别
    private String sdate;  //学生出生日期
    private String email;  //学生邮箱
    private String remark;  //备注

    //2、构造方法

    public Student() {
    }



    public Student(int sid, String sname, String gender, Date sdate, String email, String remark) {
    }



    //getter and setter


    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }


    public String getEmail() {
        return email;
    }

    public String getSdate() {
        return sdate;
    }

    public void setSdate(String sdate) {
        this.sdate = sdate;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    //重写toString方法打印
    @Override
    public String toString() {
        return "StudentBean{" +
                "sid=" + sid +
                ", sName='" + sName + '\'' +
                ", gender='" + gender + '\'' +
                ", date=" + sdate +
                ", email='" + email + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
